home *** CD-ROM | disk | FTP | other *** search
- Path: lrz-muenchen.de!wap7!west
- From: west@emt.e-technik.tu-muenchen.de (Robert Westendorp)
- Newsgroups: comp.lang.c
- Subject: Beginner: How to #include
- Date: Tue, 30 Jan 1996 18:25:01 UNDEFINED
- Organization: TU-Muenchen
- Distribution: world
- Message-ID: <west.31.00844D6A@emt.e-technik.tu-muenchen.de>
- NNTP-Posting-Host: wap7.emt.e-technik.tu-muenchen.de
- X-Newsreader: Trumpet for Windows [Version 1.0 Rev B]
-
- Hi there,
- I've got a principle question:
-
- I've got a project which consists of a couple of files.
-
- Let's say I define a struct including a member which is of a type
- declared in direct.h
-
- First File: my_inc.h
-
- #include <direct.h>
-
- struct MYSTRUCT
- {
- _find_t fileinfo;
- ....
- }
-
- Then I want to use this struct in another file:
-
- struct MYSTRUCT my_variable;
-
- I will have to include my_inc.h, AND I will have to include direct.h;
-
- Now I have a couple of include files and it's very annoying always to include
- those files down to direct.h, especially because I have to include them in the
- right order.
-
- How can I solve this problem?
- Include in include-files???
-
- thanks a lot,
- C. Kellner
-
-
-
-
-